const api = require('../../api/index');
Page({
  data:{
    jxwLeft:260,
    state:0,
    inertia:true,
    list:[],
    title:""
  },

  contactUs(){
 
    wx.vibrateLong();
    
  },
  jumpTo:function(){
  
    wx.navigateTo({
      url: '/second_page/venue_detail/venue_detail',
    })
  },

  onReady(){

    api.getMsg().then(data => 
      //this.setData({ exampleData: data })
      console.log(data)
  );

    wx.request({ url: 'http://192.168.0.77/addres/getAddress', 
    success:(data)=>{
      console.log(data.data.data)
      this.setData({
        list:data.data.data
      })
    }
  })
 
  },
  onShow(){
    wx.request({ 
      url: 'http://192.168.0.77/addres/getKey?my_key=t', 
    success:(data)=>{
      console.log(data.data.data)
      this.setData({
        title:data.data.data[0].my_value
      })
    }
  })
  }
})